import React from "react";
import { Button } from 'antd';

export default class Counter extends React.Component {  
    render(){
        const {count,increase,decrease}=this.props;
        console.log(this.props);
        return(
            <div>
                count:{count}
                <button onClick={increase}>count++</button>
                <br/>
                count1:{count}
                <button  onClick={decrease}>count1--</button>
                <br/>
                <Button type="primary">Primary</Button>
            </div>
        )
    }
}



